package com.lc1993929.actuator.starter;

import com.lc1993929.actuator.SpringBootConfig;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created by LiuChang on 2017/7/27/027.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = SpringBootConfig.class)
public class TestLog {
    @Autowired
    private SimpleService simpleService;

    @Test
    public void testLog() {
        simpleService.core(1);
        simpleService.test(1);
        simpleService.work(1);
    }
}
